home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / daolibb / listdial.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-08  |  2.4 KB  |  95 lines

  1. #if !defined(AFX_LISTDIALOG_H__A7DB9676_6820_11D2_9149_E655B8000000__INCLUDED_)
  2. #define AFX_LISTDIALOG_H__A7DB9676_6820_11D2_9149_E655B8000000__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7.  
  8. class CDaoPrintingDialog : public CDialog
  9. {
  10.     CString strTemp;
  11. public:
  12.     //{{AFX_DATA(CPrintingDialog)
  13.     enum { IDD = AFX_IDD_PRINTDLG };
  14.     //}}AFX_DATA
  15.     CDaoPrintingDialog::CDaoPrintingDialog(CWnd* pParent, CPrintDialog& Pr, LPCTSTR Title);
  16.  
  17.     virtual ~CDaoPrintingDialog() { }
  18.  
  19.     virtual BOOL OnInitDialog();
  20.     virtual void OnCancel();
  21.     void PrintPageNum(int page);
  22. };
  23.  
  24.  
  25. // ListDialog.h : header file
  26. //
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CListDialog dialog
  30.  
  31. #define IDD_DIALOG2    2
  32. #define IDC_SYSLISTVIEW1 102
  33. #define IDC_IMPRIMIR 101
  34.  
  35. #include "DaoListCtrl.h"
  36.  
  37. typedef bool (CWnd::* ConsFunc)(const char*);
  38. typedef bool (CWnd::* ConsMFunc)(CDaoListCtrl*,int*,int);
  39. typedef bool (CWnd::* AltaFunc)();
  40. typedef bool (CWnd::* BajaFunc)(const char*);
  41. typedef bool (CWnd::* BajaMFunc)(CDaoListCtrl*,int*,int);
  42.  
  43. class CListDialog : public CDialog
  44. {
  45.     CString caption;
  46.     DaoWindow* Daw;
  47.     void Insert();
  48.     void Delete();
  49.  
  50. // Construction
  51. public:
  52.     CListDialog(DaoRecordset& r, DaoWindow* d = 0, CWnd* pParent = NULL);   // standard constructor
  53.     ~CListDialog();
  54.     void SetCaption(LPCSTR str);
  55.     int* lencol;
  56.     int indcol;
  57.     int* totcol;
  58.     ConsFunc Cons;
  59.     ConsMFunc ConsM;
  60.     AltaFunc Alta;
  61.     BajaFunc Baja;
  62.     BajaMFunc BajaM;
  63. // Dialog Data
  64.     //{{AFX_DATA(CListDialog)
  65.     enum { IDD = IDD_DIALOG2 };
  66.     CDaoListCtrl    m_Lista;
  67.     //}}AFX_DATA
  68.  
  69.  
  70. // Overrides
  71.     // ClassWizard generated virtual function overrides
  72.     //{{AFX_VIRTUAL(CListDialog)
  73.     protected:
  74.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  75.     //}}AFX_VIRTUAL
  76.  
  77. // Implementation
  78. protected:
  79.  
  80.     // Generated message map functions
  81.     //{{AFX_MSG(CListDialog)
  82.     virtual BOOL OnInitDialog();
  83.     virtual void OnOK();
  84.     afx_msg void OnKeydownSyslistview1(NMHDR* pNMHDR, LRESULT* pResult);
  85.     afx_msg void OnImprimir();
  86.     afx_msg void OnDblclkSyslistview1(NMHDR* pNMHDR, LRESULT* pResult);
  87.     //}}AFX_MSG
  88.     DECLARE_MESSAGE_MAP()
  89. };
  90.  
  91. //{{AFX_INSERT_LOCATION}}
  92. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  93.  
  94. #endif // !defined(AFX_LISTDIALOG_H__A7DB9676_6820_11D2_9149_E655B8000000__INCLUDED_)
  95.